#ifndef __IASSISTGEN2_UIJSONPARSER_H
#define __IASSISTGEN2_UIJSONPARSER_H

#include <string>
#include <list>

class UIJSONParser
{
public:
	static bool getString(std::string jsonString, std::string key, std::string &value);
	static bool getInt(std::string jsonString, std::string key, int &value);
	static bool getBool(std::string jsonString, std::string key, bool &value);
	static bool getDouble(std::string jsonString, std::string key, double &value);
	static bool getObject(std::string jsonString, std::string key, std::string &value);
	static int getArraySize(std::string jsonString, std::string key);

private:
	static void splitKey(std::string key, std::list<std::string>& keys);
};

#endif
